#include<iostream>
using namespace std;

char *strcpy(char* dest, const char *src){
    if(dest==NULL|| src==NULL){
        cout<<"error";
        return dest;
    }
    
    for(int i =0;src[i]!='\0';i++){
        dest[i]=src[i];
    }
    return dest;
}

int main(){
    char src[]="ajfsdlkjf lkfa asdoi";
    char dest[50];
    cout<<strcpy(dest,src);
}


        

